<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let score = prompt('输入你的分数')
    switch (true) {
      case score <= 100 && score >= 90:
        alert('考的优秀')
        break;
        case score < 90 && score >= 80:
        alert('考的还行')
        break;
        case score < 80 && score >= 60:
        alert('及格了')
        break;
        case score < 60 && score > 0:
        alert('不及格，回家要挨打')
        break;
      default: alert('别乱写')
        break;
    }
  </script>
</body>
</html>